<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
	<html:base />

	<title>dtree.jsp</title>

	<meta http-equiv="pragma" content="no-cache" />
	<meta http-equiv="cache-control" content="no-cache" />
	<meta http-equiv="expires" content="0" />
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
	<meta http-equiv="description" content="This is my page" />
	<script type="text/javascript" src="<%=request.getContextPath()%>/js/dtree.js"></script>
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/base_orange.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/dtree.css" />

</head>

<body>
	<script type="text/javascript">
		d = new dTree('d');
		<logic:iterate id="treeNodeForm" name="treeNodeFormList">
			d.add(${treeNodeForm.id},${treeNodeForm.parentId},'${treeNodeForm.name}','${treeNodeForm.url}','','<logic:notEmpty name="treeNodeForm" property="target">${treeNodeForm.target}</logic:notEmpty><logic:empty name="treeNodeForm" property="target">${treeForm.target}</logic:empty>');
		</logic:iterate>
		document.write(d);
	</script>
</body>
</html:html>
